package com.example.base.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.base.domain.Employee;
import com.example.base.mapper.EmployeeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
//@DS("mybatisplus_learn")
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {
    @Resource
    private EmployeeMapper mapper;
    @Override
//    @DS("mybatisplus_learn")
    public List<Employee> myQueryEmployee() {
        return mapper.selectList(null);
    }

//    @DS("mybatisplus_learn")
    public List<Employee> myQueryEmployee1() {
        return this.lambdaQuery().list();
    }
}
